package com.lansi.map.bean;

import java.io.Serializable;

public class Mapinfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private String mapid;
	private String sn;
	private String name;
	private String building;
	private String ground;
	private Integer width;
	private Integer height;
	private String memo;
	
	
	public Mapinfo() {
		super();
	}


	public Mapinfo(Integer id, String mapid, String sn, String name, String building, String ground, Integer width,
			Integer height, String memo) {
		super();
		this.id = id;
		this.mapid = mapid;
		this.sn = sn;
		this.name = name;
		this.building = building;
		this.ground = ground;
		this.width = width;
		this.height = height;
		this.memo = memo;
	}


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getMapid() {
		return mapid;
	}


	public void setMapid(String mapid) {
		this.mapid = mapid;
	}


	public String getSn() {
		return sn;
	}


	public void setSn(String sn) {
		this.sn = sn;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getBuilding() {
		return building;
	}


	public void setBuilding(String building) {
		this.building = building;
	}


	public String getGround() {
		return ground;
	}


	public void setGround(String ground) {
		this.ground = ground;
	}


	public Integer getWidth() {
		return width;
	}


	public void setWidth(Integer width) {
		this.width = width;
	}


	public Integer getHeight() {
		return height;
	}


	public void setHeight(Integer height) {
		this.height = height;
	}


	public String getMemo() {
		return memo;
	}


	public void setMemo(String memo) {
		this.memo = memo;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((building == null) ? 0 : building.hashCode());
		result = prime * result + ((ground == null) ? 0 : ground.hashCode());
		result = prime * result + ((height == null) ? 0 : height.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((mapid == null) ? 0 : mapid.hashCode());
		result = prime * result + ((memo == null) ? 0 : memo.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((sn == null) ? 0 : sn.hashCode());
		result = prime * result + ((width == null) ? 0 : width.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Mapinfo other = (Mapinfo) obj;
		if (building == null) {
			if (other.building != null)
				return false;
		} else if (!building.equals(other.building))
			return false;
		if (ground == null) {
			if (other.ground != null)
				return false;
		} else if (!ground.equals(other.ground))
			return false;
		if (height == null) {
			if (other.height != null)
				return false;
		} else if (!height.equals(other.height))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (mapid == null) {
			if (other.mapid != null)
				return false;
		} else if (!mapid.equals(other.mapid))
			return false;
		if (memo == null) {
			if (other.memo != null)
				return false;
		} else if (!memo.equals(other.memo))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (sn == null) {
			if (other.sn != null)
				return false;
		} else if (!sn.equals(other.sn))
			return false;
		if (width == null) {
			if (other.width != null)
				return false;
		} else if (!width.equals(other.width))
			return false;
		return true;
	}


	@Override
	public String toString() {
		return "Mapinfo [id=" + id + ", mapid=" + mapid + ", sn=" + sn + ", name=" + name + ", building=" + building
				+ ", ground=" + ground + ", width=" + width + ", height=" + height + ", memo=" + memo + "]";
	}


	
}
